from selenium.webdriver.common.by import By
from Common.base_page import BasePage


class DemoPage(BasePage):

    def login(self):
        self.driver.get("http://192.168.1.92/index.php/Home/user/login.html")
        username_loc = (By.ID, "username1")
        password_loc = (By.ID, "password")
        self.input_text(username_loc, "13800138006","登录模块_登录页面_用户名输入操作")
        self.input_text(password_loc, "123456","登录模块_登录页面_密码输入操作")

if __name__ == '__main__':
    demo = DemoPage()
    demo.login()
